type go/parser.parser

93 uses

	go/parser (current package)
		interface.go#L97: 	var p parser
		interface.go#L209: 	var p parser
		parser.go#L28: type parser struct {
		parser.go#L68: func (p *parser) init(file *token.File, src []byte, mode Mode) {
		parser.go#L82: func (p *parser) printTrace(a ...any) {
		parser.go#L97: func trace(p *parser, msg string) *parser {
		parser.go#L104: func un(p *parser) {
		parser.go#L112: func incNestLev(p *parser) *parser {
		parser.go#L123: func decNestLev(p *parser) {
		parser.go#L128: func (p *parser) next0() {
		parser.go#L165: func (p *parser) consumeComment() (comment *ast.Comment, endline int) {
		parser.go#L188: func (p *parser) consumeCommentGroup(n int) (comments *ast.CommentGroup, endline int) {
		parser.go#L218: func (p *parser) next() {
		parser.go#L260: func (p *parser) error(pos token.Pos, msg string) {
		parser.go#L283: func (p *parser) errorExpected(pos token.Pos, msg string) {
		parser.go#L301: func (p *parser) expect(tok token.Token) token.Pos {
		parser.go#L312: func (p *parser) expect2(tok token.Token) (pos token.Pos) {
		parser.go#L324: func (p *parser) expectClosing(tok token.Token, context string) token.Pos {
		parser.go#L333: func (p *parser) expectSemi() (comment *ast.CommentGroup) {
		parser.go#L360: func (p *parser) atComma(context string, follow token.Token) bool {
		parser.go#L383: func (p *parser) advance(to map[token.Token]bool) {
		parser.go#L453: func (p *parser) safePos(pos token.Pos) (res token.Pos) {
		parser.go#L466: func (p *parser) parseIdent() *ast.Ident {
		parser.go#L478: func (p *parser) parseIdentList() (list []*ast.Ident) {
		parser.go#L496: func (p *parser) parseExprList() (list []ast.Expr) {
		parser.go#L510: func (p *parser) parseList(inRhs bool) []ast.Expr {
		parser.go#L521: func (p *parser) parseType() ast.Expr {
		parser.go#L538: func (p *parser) parseQualifiedIdent(ident *ast.Ident) ast.Expr {
		parser.go#L552: func (p *parser) parseTypeName(ident *ast.Ident) ast.Expr {
		parser.go#L573: func (p *parser) parseArrayType(lbrack token.Pos, len ast.Expr) *ast.ArrayType {
		parser.go#L601: func (p *parser) parseArrayFieldOrTypeInstance(x *ast.Ident) (*ast.Ident, ast.Expr) {
		parser.go#L648: func (p *parser) parseFieldDecl() *ast.Field {
		parser.go#L739: func (p *parser) parseStructType() *ast.StructType {
		parser.go#L765: func (p *parser) parsePointerType() *ast.StarExpr {
		parser.go#L776: func (p *parser) parseDotsType() *ast.Ellipsis {
		parser.go#L792: func (p *parser) parseParamDecl(name *ast.Ident, typeSetsOK bool) (f field) {
		parser.go#L875: func (p *parser) parseParameterList(name0 *ast.Ident, typ0 ast.Expr, closing token.Token) (params []*ast.Field) {
		parser.go#L1045: func (p *parser) parseParameters(acceptTParams bool) (tparams, params *ast.FieldList) {
		parser.go#L1077: func (p *parser) parseResult() *ast.FieldList {
		parser.go#L1097: func (p *parser) parseFuncType() *ast.FuncType {
		parser.go#L1112: func (p *parser) parseMethodSpec() *ast.Field {
		parser.go#L1194: func (p *parser) embeddedElem(x ast.Expr) ast.Expr {
		parser.go#L1213: func (p *parser) embeddedTerm() ast.Expr {
		parser.go#L1237: func (p *parser) parseInterfaceType() *ast.InterfaceType {
		parser.go#L1286: func (p *parser) parseMapType() *ast.MapType {
		parser.go#L1300: func (p *parser) parseChanType() *ast.ChanType {
		parser.go#L1325: func (p *parser) parseTypeInstance(typ ast.Expr) ast.Expr {
		parser.go#L1357: func (p *parser) tryIdentOrType() ast.Expr {
		parser.go#L1397: func (p *parser) parseStmtList() (list []ast.Stmt) {
		parser.go#L1409: func (p *parser) parseBody() *ast.BlockStmt {
		parser.go#L1421: func (p *parser) parseBlockStmt() *ast.BlockStmt {
		parser.go#L1436: func (p *parser) parseFuncTypeOrLit() ast.Expr {
		parser.go#L1456: func (p *parser) parseOperand() ast.Expr {
		parser.go#L1498: func (p *parser) parseSelector(x ast.Expr) ast.Expr {
		parser.go#L1508: func (p *parser) parseTypeAssertion(x ast.Expr) ast.Expr {
		parser.go#L1526: func (p *parser) parseIndexOrSliceOrInstance(x ast.Expr) ast.Expr {
		parser.go#L1610: func (p *parser) parseCallOrConversion(fun ast.Expr) *ast.CallExpr {
		parser.go#L1636: func (p *parser) parseValue() ast.Expr {
		parser.go#L1650: func (p *parser) parseElement() ast.Expr {
		parser.go#L1665: func (p *parser) parseElementList() (list []ast.Expr) {
		parser.go#L1681: func (p *parser) parseLiteralValue(typ ast.Expr) ast.Expr {
		parser.go#L1699: func (p *parser) parsePrimaryExpr(x ast.Expr) ast.Expr {
		parser.go#L1772: func (p *parser) parseUnaryExpr() ast.Expr {
		parser.go#L1843: func (p *parser) tokPrec() (token.Token, int) {
		parser.go#L1855: func (p *parser) parseBinaryExpr(x ast.Expr, prec1 int) ast.Expr {
		parser.go#L1881: func (p *parser) parseExpr() ast.Expr {
		parser.go#L1889: func (p *parser) parseRhs() ast.Expr {
		parser.go#L1911: func (p *parser) parseSimpleStmt(mode int) (ast.Stmt, bool) {
		parser.go#L1984: func (p *parser) parseCallExpr(callType string) *ast.CallExpr {
		parser.go#L2000: func (p *parser) parseGoStmt() ast.Stmt {
		parser.go#L2015: func (p *parser) parseDeferStmt() ast.Stmt {
		parser.go#L2030: func (p *parser) parseReturnStmt() *ast.ReturnStmt {
		parser.go#L2046: func (p *parser) parseBranchStmt(tok token.Token) *ast.BranchStmt {
		parser.go#L2061: func (p *parser) makeExpr(s ast.Stmt, want string) ast.Expr {
		parser.go#L2079: func (p *parser) parseIfHeader() (init ast.Stmt, cond ast.Expr) {
		parser.go#L2139: func (p *parser) parseIfStmt() *ast.IfStmt {
		parser.go#L2171: func (p *parser) parseCaseClause() *ast.CaseClause {
		parser.go#L2196: func (p *parser) isTypeSwitchGuard(s ast.Stmt) bool {
		parser.go#L2217: func (p *parser) parseSwitchStmt() ast.Stmt {
		parser.go#L2271: func (p *parser) parseCommClause() *ast.CommClause {
		parser.go#L2323: func (p *parser) parseSelectStmt() *ast.SelectStmt {
		parser.go#L2341: func (p *parser) parseForStmt() ast.Stmt {
		parser.go#L2423: func (p *parser) parseStmt() (s ast.Stmt) {
		parser.go#L2489: func (p *parser) parseImportSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2529: func (p *parser) parseValueSpec(doc *ast.CommentGroup, keyword token.Token, iota int) ast.Spec {
		parser.go#L2570: func (p *parser) parseGenericType(spec *ast.TypeSpec, openPos token.Pos, name0 *ast.Ident, typ0 ast.Expr) {
		parser.go#L2588: func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec {
		parser.go#L2733: func (p *parser) parseGenDecl(keyword token.Token, f parseSpecFunction) *ast.GenDecl {
		parser.go#L2764: func (p *parser) parseFuncDecl() *ast.FuncDecl {
		parser.go#L2820: func (p *parser) parseDecl(sync map[token.Token]bool) ast.Decl {
		parser.go#L2852: func (p *parser) parseFile() *ast.File {